package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by bianxiang on 16/5/3.
 */
public class LifeDetialBean implements Parcelable ,Serializable{


    /**
     * id : 30
     * lifeId : life1461070023607L7Md
     * lifeName : 蘭 泰式古法按摩
     * district : 卢湾区
     * hotArea : 卢湾区
     * avgPrice : 362
     * lifeType : 养生休闲
     * address : 马当路388号(复兴SOHO) 地下一层 B1-06 室
     * phone : 11
     * contactPerson : 11
     * openTime : 12:00-00:00
     * memo : 1.您可以通过JO+管家进行预约
     2.若使用优惠券，请您找JO管家预约
     * carouselUrl : http://7xre2g.com2.z0.glb.qiniucdn.com/2016-04-19/2016041908464874704231.jpg?e=1462258610&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:KxhOQ_xy_4OeENW6aHtFckcuQjI=
     * oneSentence : 魔都最正宗泰式按摩
     * waitReason : 坐拥百年大洋房，泰式风情别样红,柠檬草香飘满室，图腾佛像列四周,按摩技师手艺精，清幽包厢把身松
     * orderby : null
     * contents : [{"id":40,"contentId":"content1461308751221EdhD","lifeId":"life1461070023607L7Md","title":null,"content":"私密有腔调的百年独栋小洋房,弥漫着异域清新柠檬草香,佛像、大象和图腾随处可见,置身其中分分钟都想合手弯腰说一句萨瓦迪卡。","imgUrl":"http://7xre2g.com2.z0.glb.qiniucdn.com/2016-04-19/2016041908424279204526.jpg?e=1462258610&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:H8zFut43PZEn2XftOF8rpDuhTbQ="},{"id":41,"contentId":"content1461308751221W1aU","lifeId":"life1461070023607L7Md","title":null,"content":"来自泰国的按摩技师经验丰富,持有泰王国皇家认可证书。在清香幽暗的包厢里享受一场泰式按摩,全身心得到愉悦的放松。","imgUrl":"http://7xre2g.com2.z0.glb.qiniucdn.com/2016-04-19/2016041908431866009637.jpg?e=1462258610&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:5dT3MuXhGdWp-rqqSwIB1xl8WNM="},{"id":42,"contentId":"content1461308751222ZmC5","lifeId":"life1461070023607L7Md","title":null,"content":"蘭提供传统泰式草本热敷，精油按摩，香薰按摩等服务项目。按摩中使用的精油及按摩用品都来自于泰国曼谷卧佛寺指定的品牌。","imgUrl":"http://7xre2g.com2.z0.glb.qiniucdn.com/2016-04-19/2016041908435191107718.jpg?e=1462258610&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:refu2xRqHFpDUXYK370u-ear8DM="}]
     * subshops : [{"subId":"sub1461308751236bidL","id":null,"subNo":"sub1461308751237MSyp","subName":"新天地店","slatestDate":1461308751000,"sdistrict":"卢湾区","shotArea":"新天地","scontactPerson":"11","sphone":"11","sopenTime":"12:00-00:00","saddress":"马当路388号(复兴SOHO) 地下一层 B1-06 室","restId":null},{"subId":"sub1461308751237DcGV","id":null,"subNo":"sub1461308751237dWrr","subName":"淮海店","slatestDate":1461308751000,"sdistrict":"卢湾区","shotArea":"淮海路","scontactPerson":"11","sphone":"11","sopenTime":"12:00-00:00","saddress":"进贤路216号(近陕西南路)","restId":null},{"subId":"sub1461308751237v3Ns","id":null,"subNo":"sub1461308751237FMNb","subName":"花木店","slatestDate":1461308751000,"sdistrict":"浦东新区","shotArea":"其他","scontactPerson":"11","sphone":"11","sopenTime":"12:00-00:00","saddress":"梅花路1029号(喜马拉雅中心对面)","restId":null}]
     * conditionMoney : 500
     * couponMoney : 100
     */

    private int id;
    private String lifeId;
    private String lifeName;
    private String district;
    private String hotArea;
    private String avgPrice;
    private String lifeType;
    private String address;
    private String phone;
    private String contactPerson;
    private String openTime;
    private String memo;
    private String carouselUrl;
    private String oneSentence;
    private String waitReason;
    private String orderby;
    private int conditionMoney;
    private int couponMoney;
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * id : 40
     * contentId : content1461308751221EdhD
     * lifeId : life1461070023607L7Md
     * title : null
     * content : 私密有腔调的百年独栋小洋房,弥漫着异域清新柠檬草香,佛像、大象和图腾随处可见,置身其中分分钟都想合手弯腰说一句萨瓦迪卡。
     * imgUrl : http://7xre2g.com2.z0.glb.qiniucdn.com/2016-04-19/2016041908424279204526.jpg?e=1462258610&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:H8zFut43PZEn2XftOF8rpDuhTbQ=
     */

    private List<ContentsBean> contents;
    /**
     * subId : sub1461308751236bidL
     * id : null
     * subNo : sub1461308751237MSyp
     * subName : 新天地店
     * slatestDate : 1461308751000
     * sdistrict : 卢湾区
     * shotArea : 新天地
     * scontactPerson : 11
     * sphone : 11
     * sopenTime : 12:00-00:00
     * saddress : 马当路388号(复兴SOHO) 地下一层 B1-06 室
     * restId : null
     */

    private List<SubshopsBean> subshops;



    private String menuPrice;
    private String payMenuPrice;
    private List<MenuList> menuList;

    public String getMenuPrice() {
        return menuPrice;
    }

    public void setMenuPrice(String menuPrice) {
        this.menuPrice = menuPrice;
    }

    public String getPayMenuPrice() {
        return payMenuPrice;
    }

    public void setPayMenuPrice(String payMenuPrice) {
        this.payMenuPrice = payMenuPrice;
    }

    public List<MenuList> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<MenuList> menuList) {
        this.menuList = menuList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLifeId() {
        return lifeId;
    }

    public void setLifeId(String lifeId) {
        this.lifeId = lifeId;
    }

    public String getLifeName() {
        return lifeName;
    }

    public void setLifeName(String lifeName) {
        this.lifeName = lifeName;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getHotArea() {
        return hotArea;
    }

    public void setHotArea(String hotArea) {
        this.hotArea = hotArea;
    }

    public String getAvgPrice() {
        return avgPrice;
    }

    public void setAvgPrice(String avgPrice) {
        this.avgPrice = avgPrice;
    }

    public String getLifeType() {
        return lifeType;
    }

    public void setLifeType(String lifeType) {
        this.lifeType = lifeType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getCarouselUrl() {
        return carouselUrl;
    }

    public void setCarouselUrl(String carouselUrl) {
        this.carouselUrl = carouselUrl;
    }

    public String getOneSentence() {
        return oneSentence;
    }

    public void setOneSentence(String oneSentence) {
        this.oneSentence = oneSentence;
    }

    public String getWaitReason() {
        return waitReason;
    }

    public void setWaitReason(String waitReason) {
        this.waitReason = waitReason;
    }

    public String getOrderby() {
        return orderby;
    }

    public void setOrderby(String orderby) {
        this.orderby = orderby;
    }

    public int getConditionMoney() {
        return conditionMoney;
    }

    public void setConditionMoney(int conditionMoney) {
        this.conditionMoney = conditionMoney;
    }

    public int getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(int couponMoney) {
        this.couponMoney = couponMoney;
    }

    public List<ContentsBean> getContents() {
        return contents;
    }

    public void setContents(List<ContentsBean> contents) {
        this.contents = contents;
    }

    public List<SubshopsBean> getSubshops() {
        return subshops;
    }

    public void setSubshops(List<SubshopsBean> subshops) {
        this.subshops = subshops;
    }

    public static class ContentsBean implements Serializable{
        private int id;
        private String contentId;
        private String lifeId;
        private String title;
        private String content;
        private String imgUrl;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContentId() {
            return contentId;
        }

        public void setContentId(String contentId) {
            this.contentId = contentId;
        }

        public String getLifeId() {
            return lifeId;
        }

        public void setLifeId(String lifeId) {
            this.lifeId = lifeId;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }
    }


    public static class SubshopsBean implements Serializable {
        private String subId;
        private String id;
        private String subNo;
        private String subName;
        private long slatestDate;
        private String sdistrict;
        private String shotArea;
        private String scontactPerson;
        private String sphone;
        private String sopenTime;
        private String saddress;
        private String restId;

        public String getSubId() {
            return subId;
        }

        public void setSubId(String subId) {
            this.subId = subId;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSubNo() {
            return subNo;
        }

        public void setSubNo(String subNo) {
            this.subNo = subNo;
        }

        public String getSubName() {
            return subName;
        }

        public void setSubName(String subName) {
            this.subName = subName;
        }

        public long getSlatestDate() {
            return slatestDate;
        }

        public void setSlatestDate(long slatestDate) {
            this.slatestDate = slatestDate;
        }

        public String getSdistrict() {
            return sdistrict;
        }

        public void setSdistrict(String sdistrict) {
            this.sdistrict = sdistrict;
        }

        public String getShotArea() {
            return shotArea;
        }

        public void setShotArea(String shotArea) {
            this.shotArea = shotArea;
        }

        public String getScontactPerson() {
            return scontactPerson;
        }

        public void setScontactPerson(String scontactPerson) {
            this.scontactPerson = scontactPerson;
        }

        public String getSphone() {
            return sphone;
        }

        public void setSphone(String sphone) {
            this.sphone = sphone;
        }

        public String getSopenTime() {
            return sopenTime;
        }

        public void setSopenTime(String sopenTime) {
            this.sopenTime = sopenTime;
        }

        public String getSaddress() {
            return saddress;
        }

        public void setSaddress(String saddress) {
            this.saddress = saddress;
        }

        public String getRestId() {
            return restId;
        }

        public void setRestId(String restId) {
            this.restId = restId;
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.lifeId);
        dest.writeString(this.lifeName);
        dest.writeString(this.district);
        dest.writeString(this.hotArea);
        dest.writeString(this.avgPrice);
        dest.writeString(this.lifeType);
        dest.writeString(this.address);
        dest.writeString(this.phone);
        dest.writeString(this.contactPerson);
        dest.writeString(this.openTime);
        dest.writeString(this.memo);
        dest.writeString(this.carouselUrl);
        dest.writeString(this.oneSentence);
        dest.writeString(this.waitReason);
        dest.writeString(this.orderby);
        dest.writeInt(this.conditionMoney);
        dest.writeInt(this.couponMoney);
        dest.writeList(this.contents);
        dest.writeList(this.subshops);
        dest.writeString(menuPrice);
        dest.writeString(payMenuPrice);
        dest.writeList(menuList);
        dest.writeString(status);
    }

    public LifeDetialBean() {
    }

    protected LifeDetialBean(Parcel in) {
        this.id = in.readInt();
        this.lifeId = in.readString();
        this.lifeName = in.readString();
        this.district = in.readString();
        this.hotArea = in.readString();
        this.avgPrice = in.readString();
        this.lifeType = in.readString();
        this.address = in.readString();
        this.phone = in.readString();
        this.contactPerson = in.readString();
        this.openTime = in.readString();
        this.memo = in.readString();
        this.carouselUrl = in.readString();
        this.oneSentence = in.readString();
        this.waitReason = in.readString();
        this.orderby = in.readString();
        this.conditionMoney = in.readInt();
        this.couponMoney = in.readInt();
        this.contents = new ArrayList<ContentsBean>();
        in.readList(this.contents, ContentsBean.class.getClassLoader());
        this.subshops = new ArrayList<SubshopsBean>();
        in.readList(this.subshops, SubshopsBean.class.getClassLoader());
        in.readString();
        in.readString();
        this.menuList=new ArrayList<>();
        in.readList(this.menuList,MenuList.class.getClassLoader());
        in.readString();
    }

    public static final Parcelable.Creator<LifeDetialBean> CREATOR = new Parcelable.Creator<LifeDetialBean>() {
        @Override
        public LifeDetialBean createFromParcel(Parcel source) {
            return new LifeDetialBean(source);
        }

        @Override
        public LifeDetialBean[] newArray(int size) {
            return new LifeDetialBean[size];
        }
    };

    public static class  MenuList implements Parcelable ,Serializable {

        /**
         * priceUnit : 1
         * lifeMenuName : 1
         * price : 1
         */

        private String priceUnit;
        private String lifeMenuName;
        private String price;
        private String lifeMenuId;

        public String getLifeMenuId() {
            return lifeMenuId;
        }

        public void setLifeMenuId(String lifeMenuId) {
            this.lifeMenuId = lifeMenuId;
        }

        public String getPriceUnit() {
            return priceUnit;
        }

        public void setPriceUnit(String priceUnit) {
            this.priceUnit = priceUnit;
        }

        public String getLifeMenuName() {
            return lifeMenuName;
        }

        public void setLifeMenuName(String lifeMenuName) {
            this.lifeMenuName = lifeMenuName;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.priceUnit);
            dest.writeString(this.lifeMenuName);
            dest.writeString(this.price);
            dest.writeString(lifeMenuId);
        }

        public MenuList() {
        }

        protected MenuList(Parcel in) {
            this.priceUnit = in.readString();
            this.lifeMenuName = in.readString();
            this.price = in.readString();
            this.lifeMenuId=in.readString();
        }

        public static final Creator<MenuList> CREATOR = new Creator<MenuList>() {
            @Override
            public MenuList createFromParcel(Parcel source) {
                return new MenuList(source);
            }

            @Override
            public MenuList[] newArray(int size) {
                return new MenuList[size];
            }
        };
    }
}
